
#import "DataType.h"

// 初始化侵略者
void gCreateInvaders();
void gReleaseInvaders();

@interface InvaderBase : CCSprite
{
	CCSpriteBatchNode*	mBatch;
	CGPoint				mSpeed;
	BOOL				mActive;
	InvaderType			mType;
	float				mRadius;
}

@property (nonatomic,readonly)float radius;
@property (nonatomic,readonly)BOOL active;
@property (nonatomic,readonly)InvaderType iType;

-(id)initWithType:(InvaderType)type batch:(CCSpriteBatchNode*)batch;

-(void)fire;
-(void)destroy;
-(void)clear;
/* 更新位置，如果出屏了，则返回false，否则返回true */
-(bool)updateInvader:(ccTime)dt;
-(int)getScore;

@end